package com.chat.api.web.vo;

import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@MappedSuperclass
@Setter @Getter
public class BaseIDWorkEntity<T> implements Serializable  {
	private static final long serialVersionUID = 1L;

	/**
	 * 实体编号（唯一标识）
	 */
	@Id
	protected Long id=-1L;
	
	
	@Column(name = "create_by")
	protected Long createBy;	// 创建者
	
	@Column(name = "create_date")
	protected Date createDate;	// 创建时间
	
	@Column(name = "update_by")
	protected Long updateBy;	// 更新者
	
	@Column(name = "update_date")
	protected Date updateDate;	//更新时间
	
	@Transient
	protected boolean update = false;//是否为更新操作
	
	public BaseIDWorkEntity() {
	}

	public BaseIDWorkEntity(long id) {
		this();
		this.id = id;
	}

}
